import { ElMessage } from "element-plus";

window.alert = function (value: string | any): void {
    if (typeof value == "object") {
        ElMessage(value);
    } else {
        ElMessage({
            message: value,
            type: "info",
        });
    }
};